<?php $this->_extends('../_layouts/blank_layout'); ?>
<?php $this->_block('contents'); ?>
<link type="text/css" href="<?=Q::ini('custom_system/base_url')?>css/prettyphoto.css" rel="stylesheet" />
<script type="text/javascript" src="<?=Q::ini('custom_system/base_url')?>js/jq.js"></script>
<script type="text/javascript" src="<?=Q::ini('custom_system/base_url')?>js/jq.prettyphoto.js"></script>
<script type="text/javascript">
$(function(){
	$("a[rel^='pretty_photo']").prettyPhoto({theme:'facebook'});
});
</script>
<h2><?=$position?>架位信息</h2>
<table width="90%" class="list_table">
<tr>
	<th>产品编号</th>
	<th width="100">数量</th>
	<th>销售状态</th>
	<th>采购状态</th>
	<th>架位</th>
</tr>
<?foreach ($product as $p):?>
<tr>
	<td>
		<?=$p['number']?>
		<?if ($p['pic_url']):?>
			<?$pretty_photo_number = 0;?>
			<?foreach ($p['pic_url'] as $pp):?>
			<a rel="pretty_photo[<?=$p['id']?>]" href="<?=$pp?>"><?if(!$pretty_photo_number):?><span class="img_icon"></span><?endif;?></a>
			<?$pretty_photo_number = 1;?>
			<?endforeach;?>
		<?endif;?>
	</td>
	<td><?=$p['quantity']?></td>
	<td><font color="#<?=Helper_BSS_Normal::getIniOne('product_sales_status', 'value', $p['sales_status'], 'color')?>"><?=Helper_BSS_Normal::getIniOne('product_sales_status', 'value', $p['sales_status'], 'name')?></font></td>
	<td><font color="#<?=Helper_BSS_Normal::getIniOne('product_purchase_status', 'value', $p['purchase_status'], 'color')?>"><?=Helper_BSS_Normal::getIniOne('product_purchase_status', 'value', $p['purchase_status'], 'name')?></font></td>
	<td><?=$p['shelf_position']?></td>
</tr>
<?endforeach;?>
</table>
<?php $this->_endblock();?>